package org.gwtde.client.model;

import net.mygwt.ui.client.data.Model;

public class Folder extends Model {

	public Folder(String pName) {
		set("name", pName);
	}

	public Folder(String pName, Model[] pChildren) {
		setName(pName);
		for (int i = 0; i < pChildren.length; i++) {
			add(pChildren[i]);
		}
	}

	public String getName() {
		return getAsString("name");
	}

	public void setName(String name) {
		set("name", name);
	}
}
